Skip to main content

All Questions

-2votes
1answer
121views

What's a cleaner way to pass a function an array of values and then sort my object by those values?

The working code: ...
Ryan's user avatar
0votes
2answers
2kviews

Custom sorting function implemented as a jQuery plugin

I was asked to create a jQuery plugin that would sort homogeneous DOM elements in a given DOM container element. I came up with the idea to attach data-priority ...
luqo33's user avatar
0votes
1answer
10kviews

Sorting products by name or price

Lets preface this by saying that when it comes to javascript, I am a hack. I make what I need happen by cobbling together crappy, inefficient, redundant code. I want to get better. Recently I was ...
user avatar
3votes
2answers
3kviews

Method for sorting numbers from user input

I have an input with numbers 1, 2, 3, 4 and I want to change the order of this number dynamically according to users input. You can find my code below and also a running example here. HTML ...
dixromos98's user avatar
5votes
2answers
511views

How to verify if HTML table sort is stable or not?

I have implemented a HTML table sorting. I actually implemented a sort first using jQuery and then modified it based on the answer to this question for performance as I had done the same mistake. My ...
anirudh's user avatar
3votes
1answer
202views

Sorting possibly unstable and general jsfiddle/jquery problem

I have a simple sorting algorithm that I was told is possibly unstable. I'm wondering what in the sort is unstable. I have test cases written to test all fields with no issues. A secondary problem is ...
Organiccat's user avatar
1vote
1answer
140views

Extracting Javascript functions

I have this jQuery click handler function that has three jobs: Set the time interval for the refresh rate Change the color on the clicked refresh rate selection Callback the tablesort functions to ...
steve_gallagher's user avatar

close